package com.smile.config.entity.repository;

import com.smile.config.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository
  //extends ElasticsearchRepository<User, Long> {
  extends JpaRepository<User, Long> {

  User findByUserName(String userName);

  User findByUserNameOrEmail(String userName, String email);

}
